<!-- Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/ -->

<script setup lang="ts">
import CommonOrganizationAvatar from '#shared/components/CommonOrganizationAvatar/CommonOrganizationAvatar.vue'
import type { AutoCompleteOrganizationOption } from '#shared/components/Form/fields/FieldOrganization/types'

defineProps<{
  option: AutoCompleteOrganizationOption
}>()
</script>

<template>
  <CommonOrganizationAvatar
    v-if="option.organization"
    :entity="option.organization"
    :class="{
      'opacity-30': option.disabled,
    }"
    size="xs"
  />
</template>
